<?php
namespace Servidor;

return array(
    'di' => array(
	   'instance' => array(
    	   'alias' => array(
	   	           'json-pp' => 'Servidor\PostProcessor\Json',
    	           'xml-pp'  => 'Servidor\PostProcessor\Xml',
	       )
        )
    ),
    'controllers' => array(
        'invokables' => array(
            'atividade' => 'Servidor\Controller\AtividadeRestController'
        ),
    ),
    'router' => array(
        'routes' => array(
            'servidor' => array(
                'type'    => 'Segment',
                'options' => array(
                    'route'    => '/api/:controller[/:formatter][/:id[/]]',
                    'constraints' => array(
                        'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'formatter'  => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+'	
                    )
                ),
            ),           
        ),
    ),
    'view_manager' => array(
        'strategies' => array(
    		'ViewJsonStrategy'
    	)
    ),
    'doctrine' => array(
    		'driver' => array(
    				__NAMESPACE__ . '_driver' => array(
    						'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
    						'cache' => 'array',
    						'paths' => array(__DIR__ . '/../src/' . __NAMESPACE__ . '/Entity')
    				),
    				'orm_default' => array(
    						'drivers' => array(
    								__NAMESPACE__ . '\Entity' => __NAMESPACE__ . '_driver'
    						)
    				)
    		)
    ),
);
